package com.bw.goods.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bw.common.vo.ShopSeckillVo;
import com.bw.goods.entity.SeckillActivityEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * 
 * 
 * @author Hao_YunKai
 * @email 2745578447@qq.com
 * @date 2022-02-22 21:44:15
 */
@Mapper
public interface SeckillActivityDao extends BaseMapper<SeckillActivityEntity> {

    IPage<ShopSeckillVo> voList(Page<ShopSeckillVo> voPage, @Param("goodsName") String goodsName);

    ShopSeckillVo seckillByGoodsId(@Param("goodsId") Long goodsId);

    Integer setSeckillStock(@Param("goodsId") Long goodsId, @Param("num") Integer num);
}
